package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_user_log`", catalog="id")
public class YsUserLog extends BaseEntity<YsUserLog> {

	private Long id; // 主键ID
	private String ip; // 操作主机IP
	private String name; // 操作名称
	private Long userId; // 用户id
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsUserLog setId(Long id) {
		this.id = id;
		return this;
	}
	public String getIp() {
		return ip;
	}
	public YsUserLog setIp(String ip) {
		this.ip = ip;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsUserLog setName(String name) {
		this.name = name;
		return this;
	}
	public Long getUserId() {
		return userId;
	}
	public YsUserLog setUserId(Long userId) {
		this.userId = userId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsUserLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsUserLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsUserLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsUserLog ysUserLog(
		String ip,
		String name,
		Long userId,
		Integer status
			) {
		YsUserLog entity = new YsUserLog();
		entity.setIp(ip);
		entity.setName(name);
		entity.setUserId(userId);
		entity.setStatus(status);
		return entity;
	}
}